package ru.spbu.math.seabattle.client.messages;

import java.io.Serializable;

import ru.spbu.math.seabattle.entity.PlayerID;

public class OnGameRequestMessage implements Serializable {

	private static final long serialVersionUID = 1L;

	private final PlayerID opponentId;
	private final String opponentName;
	
	
	public OnGameRequestMessage(PlayerID id, String opponentName) {
		opponentId = id;
		this.opponentName = opponentName;
	}
	
	public PlayerID getOpponentId() {
		return opponentId;
	}
	
	public String getName() {
		return opponentName;
	}
}
